package com.net.xpay.common.manager;

import com.net.common.manager.DomainManager;
import com.net.xpay.common.domain.ApiMonitor;
import com.net.xpay.common.model.ApiMonitorAggModel;
import com.net.xpay.core.model.ApiMonitorSearchModel;

import java.time.LocalDate;
import java.util.List;


public interface ApiMonitorManager extends DomainManager<Long,ApiMonitor> {

    List<ApiMonitorAggModel> aggSearch(ApiMonitorSearchModel searchModel);

    long aggSearchCount(ApiMonitorSearchModel searchModel);

    ApiMonitor getByApi(String api);

    int deleteByMaxDay(LocalDate day);
}
